package com.ims.core.enums;

/**
 * OrderStatus枚举类，用于表示  订单状态，包含计划、订购、完成、历史、停止几种状态
 * @author  IMS
 */
public enum OrderStatus {
    PLANNED('P', "计划"),
    ORDERED('O', "订购"),
    COMPLETED('C', "完成"),
    HISTORY('H', "历史"),
    STOPPED('S', "停止");

    private final char code;
    private final String name;

    OrderStatus(char code, String name) {
        this.code = code;
        this.name = name;
    }

    public char getCode() {
        return code;
    }

    public String getName() {
        return name;
    }
}